cmake_minimum_required(VERSION 3.31)
project(untitled1)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

set(CMAKE_PREFIX_PATH "D:/Qt/5.14.2/mingw73_64")

find_package(Qt5 COMPONENTS
        Core
        Gui
        Widgets
        REQUIRED)

add_executable(untitled1 main.cpp
        multiheader.cpp
        multiheader.h
        RbWindow.cpp
        RbWindow.h
        RbTableHeaderView.cpp
        RbTableHeaderView.h)
target_link_libraries(untitled1
        Qt5::Core
        Qt5::Gui
        Qt5::Widgets
)

if(MSVC)
    target_compile_options(untitled1 PRIVATE /utf-8)
    target_compile_definitions(untitled1 PRIVATE UNICODE _UNICODE)
endif()

if(MSVC)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zm200")
endif()